export interface MenusData {
  id: number
  pid: number
  name: string
  path: string
  redirect?: string
  component: string
  meta: {
    hidden?: boolean
    title: string
    elIcon?: string
    svgIcon?: string
    affix?: boolean
    keepAlive?: boolean
    alwaysShow?: boolean
  }
  children?: MenusData[]
}
export interface GetListsRequestData {
  id?: number
}

export interface CreateRequestData {
  title: string
  path: string
  name: string
  redirect?: string
  component: string
  icon?: string
  hidden: number
  parent_id: number
  controller: string
  http_name: string
}
export interface UpdateRequestData {
  id: number
  title: string
  path: string
  name: string
  redirect?: string
  component: string
  icon?: string
  hidden: number
  parent_id: number
  controller: string
  http_name: string
}

export interface GetDetailRequestData {
  id: string
}
export interface DeleteRequestData {
  id: number
  title?: string
}

export type SystemMenuResponseData = ApiResponseData<MenusData[]>
